#!/Users/meihao/.virtualenvs/meiduo_mall/bin/python

import sys
sys.path.insert(0, '../../')

import os
os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'meiduo_mall.settings.dev')

# 初始化django
import django
django.setup()

from celery_tasks.html.tasks import generate_static_sku_detail_html
from goods.models import SKU

if __name__ == '__main__':

    skus = SKU.objects.all()

    for sku in skus:
        print(sku.id)
        generate_static_sku_detail_html.delay(sku.id)






    # for i in range(16):
    #     generate_static_sku_detail_html.delay(i+1)